﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrmMenuEdit.aspx.cs" Inherits="Web.AdminPage.FrmMenuEdit" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../css/bootstrap.min.css" rel="stylesheet" />
    <link href="../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.min.css" rel="stylesheet">
    <link href="../css/style.min.css?v=4.1.0" rel="stylesheet">
    <title>Edit</title>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <form method="post" id="frm">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>编辑</h5>
                            <input type="hidden" id="Id" name="Id" value="<%=model.Id %>"
                                class="form-control" />
                            <div class="ibox-tools">

                                <button id="save" class="btn btn-primary  btn-xs" type="submit">保存</button>
                            </div>
                        </div>
 <div class="form-group">
<label class="col-sm-2 control-label">父节点</label>
 <div class="col-sm-10">
<input type="text" id="Pid" name="Pid" value="<%=model.Pid %>" placeholder="父节点" class="form-control"/>
 </div>
 </div>
 <div class="form-group">
<label class="col-sm-2 control-label">名称</label>
 <div class="col-sm-10">
<input type="text" id="Name" name="Name" value="<%=model.Name %>" placeholder="名称" class="form-control"/>
 </div>
 </div>
 <div class="form-group">
<label class="col-sm-2 control-label">地址</label>
 <div class="col-sm-10">
<input type="text" id="Urls" name="Urls" value="<%=model.Urls %>" placeholder="地址" class="form-control"/>
 </div>
 </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>
    <script src="../js/content.min.js?v=1.0.0"></script>
    <script src="../js/jquery.form.js"></script>
    <script>
        $(function () {
            var options = {
                target: '#frm',
                success: suncess,
                url: "../Hanlder/MenuHandler.ashx?Method=Edit",
                type: "post",
                dataType: "json",
                timeout: 3000
            }
            $("#frm").ajaxForm(options);
            function suncess(data) {
                var res = data;
                if (res.states == 1) {
                    parent.layer.msg(res.msg);
                }
                else {
                    parent.layer.msg('操作成功', function () {
                        parent.layer.closeAll();
                    });
                }
            }
        })
    </script>
</body>
</html>
